home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- *
- * NSSDC/CDF Pick a delimeter for a string.
- *
- * Version 1.0, 25-Feb-92, Hughes STX
- *
- * Modification history:
- *
- * V1.0 25-Feb-92, J Love Original version.
- *
- ******************************************************************************/
-
- #include "cdfdist.h"
-
- /******************************************************************************
- * PickDelim. Exclamation mark (!) isn't used because it starts a comment in
- * a skeleton table.
- ******************************************************************************/
-
- char PickDelim (string)
- char *string;
- {
- static char choices[] = "\"'`^~.:-,;|+=@#$%&*()/?<>{}[]\\";
- int i;
-
- for (i = 0; choices[i] != NUL; i++)
- if (strchr(string,choices[i]) == NULL) return choices[i];
-
- return NUL; /* Very bad, use character stuffing if this is a problem. */
- }
-